function save_latex_table_to_file(latex_table, filename)
    fileID = fopen(filename, 'w');
    if fileID == -1
        error('cannnot open');
    end
    fprintf(fileID, '%s', latex_table);
    fclose(fileID);
end